package com.nj.liandi.gulimall.product.feign;

import com.nj.liandi.common.utils.R;
import com.nj.liandi.gulimall.product.feign.fallback.SeckillFeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * description: SeckillFeignService
 * date: 2021/11/10 17:23
 * author: maizj
 * version: 1.0
 */
@FeignClient(value = "gulimall-seckill",fallback = SeckillFeignServiceFallBack.class)
public interface SeckillFeignService {

    @GetMapping("/sku/seckill/{skuId}")
    R getSkuSeckillInof(@PathVariable("skuId") Long skuId);
}
